<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<!DOCTYPE html>
<html lang="en">
<head>
</head>
<body>
<div class="right-container">
    <div class="row">
        <div class="col-xs-12">
            <table id="grid-table"></table>
            <div id="grid-pager"></div>

        </div>
    </div>
</div>

<!-- page specific plugin scripts -->
<script src="${basePath}/assets/js/jqGrid/jquery.jqGrid.min.js${VERSION}"></script>
<script src="${basePath}/assets/js/jqGrid/grid.locale-cn.js${VERSION}"></script>

<!-- inline scripts related to this page -->
<script type="text/javascript">
    var pageii = null;
    var taskTitle;
    var taskId;
    jQuery(function ($) {
        $('.date-icon').fdatepicker({
            format: 'yyyy-mm-dd'
        });
        
        alert('sssssssssssss');
        CommonUtils.grid({
            url: "${basePath}/userTask/findUserTasks",
            colNames: ['序号','任务被分配人', '计划开始时间','实际开始时间', '计划结束时间','实际结束时间','创建时间'],
            colModel: [
                {name: 'user_task_id', index: 'id', key: true, width: 30, sorttype: "int"},
                {
                    name: 'alloter_id',
                    index: 'alloter_id',
                    width: 50
                },
                {
                    name: 'startTimePl',
                    index: 'startTimePl',
                    width: 70,
                    formatter: CommonUtils.formateDay
                },
                {
                    name: 'startTimeReal',
                    index: 'startTimeReal',
                    width: 70,
                    formatter: CommonUtils.formateDay
                },
                {
                    name: 'endTimePl',
                    index: 'endTimePl',
                    width: 70,
                    formatter: CommonUtils.formateDay
                },
                {
                    name: 'endTimeReal',
                    index: 'endTimeReal',
                    width: 70,
                    formatter: CommonUtils.formateDay
                },
                {
                    name: 'createTime',
                    index: 'createTime',
                    width: 80,
                    formatter: CommonUtils.formateDate
                }
            ],
            jsonReader: {
                root: "rows", page: "currentPage", total: "totalPages",
                records: "totalRecords", repeatitems: false, id: "id"
            }
        });
        var loading = null;
    });
</script>
</body>
</html>